//: Playground - noun: a place where people can play

import UIKit

if #available(iOS 10, *) {

    print("支持iOS10")
} else {

    print("不支持iOS 10， 支持iOS 10以前的版本")
}

if #available(iOS 10, macOS 10.12, *) {
    // Use iOS 10 APIs on iOS, and use macOS 10.12 APIs on macOS
} else {
    // Fall back to earlier iOS and macOS APIs
}